
<%@ include file="/common/taglibs.jsp"%>
<!--分页查询共用的页面-->
<%@ include file="/common/common.jsp"%>
<%@ page language="java" pageEncoding="UTF-8"%>


<script>

function processAlarm()
{
	var strAlarmId = "${strAlarmId}";
	var param = "?input=true&strAlarmId="+strAlarmId+"&remark="+remark;
    $("#entityForm").ajaxSubmit(function(data)
	{
		 if(data.success)
			 {
			alert("报警已处理,命令下发给终端!");
		 }
		 else
			 alert("提交失败! 错误:" + data.message);
			 window.parent.closeCommandWindow();
		 }
	); //提交表单
}
$().ready(function() {
	 $("#entityForm").validate(); //初始化验证信息
  

});
</script>
 <BODY>
	<form id="entityForm" name="entityForm" 
			action='<%=ApplicationPath%>/data/batchProcessAlarm.action' method="POST">
				
        <input type="hidden"  name="strAlarmId"  id="strAlarmId" value="${strAlarmId}"/>
        <input type="hidden"  name="processed"  id="processed" value="1"/>
  <table width="100%"  class="TableBlock">
					<tbody><tr>
						<td colspan="2" style="font-weight: bold; background: #EFEFEF;" height="25">报警信息
						<span style="color:red;background:blue;">${message}</span>
						</td>
					</tr>
					
					<tr>
						<td align="right">处理情况:
						</td>
						<td>
						     <input type="text" name="remark" value="已处理" />
						   </td>
					</tr>				
					<tr>
						<td colspan=2 align="center">
							<button type="button" id="btnClearAlarm" onclick="processAlarm(4)" class="button gray medium">处理报警</button> 
						</td>						
					</tr>

				
					
				</tbody></table>
 </BODY>
</HTML>
